package public

import (
	"github.com/gin-gonic/gin"
	"go-interview-forum/api/public"
	"go-interview-forum/middleware"
)

func Router(g *gin.Engine) {
	// 分组
	r := g.Group("public")
	// 具体路由配置
	r.POST("send/sms", public.SendSms)

	r.Use(middleware.TokenAuth)
	r.POST("upload/image", public.UploadImage)

}
